﻿using System;
using System.Collections.Generic;

namespace AMS.DataAccess.Sys.BO
{
    [DBTable("TS_Role")]
    public class RoleInfo
    {
        #region Database Column Fields
        [DBPrimaryKeyColumn("AID", true)]
        public int AID { get; set; }

        [DBColumn("RoleName")]
        public string RoleName { get; set; }

        [DBColumn("isSysRole")]
        public bool isSysRole { get; set; }

        [DBColumn("isReadOnly")]
        public bool isReadOnly { get; set; }

        [DBDateTime("CreateDateTime", DateTimeType.DateTime, false, true)]
        public DateTime CreateDateTime { get; set; }

        [DBColumn("CreateUserID", false, true)]
        public int CreateUserID { get; set; }

        #endregion

        public List<UserInfo> Users { get; set; }
    }
}
